//
//  EditHUDView.m
//  有材网
//
//  Created by 肖扬 on 16/3/4.
//  Copyright © 2016年 肖扬. All rights reserved.
//

#import "EditHUDView.h"

@implementation EditHUDView
@synthesize alertLab,bgView,windowView;
-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.windowView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SWIDTH, VHEIGHT)];
        self.windowView.backgroundColor = GRAYColor;
        self.windowView.alpha = 0.5;
        [self addSubview:self.windowView];
        
        self.bgView = [[UIImageView alloc]initWithFrame:CGRectMake(40, (VHEIGHT - 124)/2, SWIDTH - 80, 60)];
        self.bgView.backgroundColor = BLACKColor;
//        Radio(self.bgView, blackColor);
        self.bgView.layer.masksToBounds = YES;
        self.bgView.layer.cornerRadius = 10.0;
        self.bgView.layer.borderWidth = 0.6;
        self.bgView.layer.borderColor = [[UIColor grayColor] CGColor];
        [self addSubview:self.bgView];
        
        self.alertLab = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, self.bgView.frame.size.width - 20, 40)];
        self.alertLab.numberOfLines = 2;
        self.alertLab.font = [UIFont systemFontOfSize:14];
        self.alertLab.backgroundColor = ClearColor;
        self.alertLab.textAlignment = NSTextAlignmentCenter;
        self.alertLab.textColor = WhiteColor;
        [self.bgView addSubview:self.alertLab];
    }
    return self;
}
@end
